<template>
    <div class='overlay' v-on:click = "closeOverlay"></div>
</template>

<script>
export default {
    methods: {
        closeOverlay() {
            this.$emit('closeOverlay',false)
        }
    }
}
</script>

<style lang="less" scoped>
.overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index:1003;
}
</style>